package dao;

import dao.Defines;
import dao.postgres.PostgresDAOFactory;

public abstract class DAOFactory implements Defines {

	private static DAOFactory dao = null;
	
	public abstract ContaDAO getContaDAO();
	
	public static DAOFactory getInstance() {

		if(dao!=null) return (dao);
		switch (DefaultDB) {
		case SQLITE:

			break;
		case MYSQL:

			break;
		case ORACLE:

			break;

		default:
			dao = new PostgresDAOFactory();						
		}
		return (dao);
	}

}
